package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * app用户登录日志对象 app_user_login
 *
 * @author ruoyi
 * @date 2023-03-02
 */
@TableName(value = "app_user_login")
public class AppUserLogin extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * $column.columnComment
     */
    private Long userId;

    /**
     * 登录的ip
     */
    @Excel(name = "登录的ip")
    private String loginIp;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public String getLoginIp() {
        return loginIp;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("createTime", getCreateTime())
                .append("loginIp", getLoginIp())
                .toString();
    }
}
